package com.sxf.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sxf.dao.TermDAO;
import com.sxf.domain.blog.Term;
import com.sxf.domain.viewbean.TermVO;
import com.sxf.mybatis.page.Pagination;
import com.sxf.querybean.TermQuery;
import com.sxf.service.TermService;
@Service
public class TermServiceImpl implements TermService {
	@Resource
	private TermDAO dao;

	@Override
	public Pagination<TermVO> queryPage(TermQuery query) {
		return dao.queryPage(query);
	}

	@Override
	public TermVO queryOne(TermQuery query) {
		return dao.queryOne(query);
	}

	@Override
	public List<TermVO> queryList(TermQuery query) {
		return dao.queryList(query);
	}

	@Override
	public long queryNumber(TermQuery query) {
		return dao.queryNumber(query);
	}

	@Override
	public int insert(Term term) {
		return dao.insert(term);
	}

	@Override
	public int update(Term term) {
		return dao.update(term);
	}

	@Override
	public int delete(Term term) {
		return dao.delete(term);
	}

	public void setDao(TermDAO dao) {
		this.dao = dao;
	}
}
